<?php
$sub_menu = "400100";
include_once("./_common.php");

check_demo();

auth_check($auth[$sub_menu], "u");

check_token();

$msg = "";

$c_code = $_POST['cate_msg2'] ? $_POST['cate_msg2'] : $_POST['move_cate'];

for ($i=0; $i<count($chk); $i++)
{
	$sql = "UPDATE " . $g4['goods_table'] . "
						SET c_code		= '". $c_code . "'
							WHERE idx='" . $chk[$i] . "' ";

	sql_query($sql);
}

if ($msg)
    echo "<script language='JavaScript'> alert('$msg'); </script>";

goto_url("./goods_list.php?$qstr");
?>
